package com.zxx.pattern.observerPattern.observable;

/**
 * 抽象的主题角色，即抽象的被观察者
 *
 * @author zxx on 2021/3/9
 */
public interface Watched {

    void addWatcher(Watcher watcher);

    void removeWatcher(Watcher watcher);

    void notifyWatchers(String string);

}
